public class Dog {
    private String name;
    private int age;

    public Dog(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void bark() {
        System.out.println(name + " is barking");
    }

    public void celebrateBirthday() {
        age++;
        System.out.println("Happy birthday to " + name + "! Now it is " + age + " years old");
    }

    public String getName() {
        return name;
    }

    public static void main(String[] args) {
        Dog dog = new Dog("Buddy", 3);
        dog.bark();
        dog.celebrateBirthday();
    }
}